<div class="wrap">
    <h2>Wordpress Simple Survey - Setup</h2>

    <form name="wpss_form" method="post"  action="<?php echo $wpss_admin_url; ?>">
        <input type="hidden" name="wpss_hidden" value="SurveyOptionsForm">

        <div id="icon-tools" class="icon32"></div>
        <h2>Simple Survey Options:</h2>

        <div class="wpss_options">
            <p><strong>Quiz ID: </strong><input type="text" name="wpss_QuizID" readonly="readonly" value="<?php echo $currQuizID; ?>" size="20" maxlength="20" /></p>

            <p><strong>Quiz Title: </strong><input type="text" name="wpss_quizTitle" value="<?php echo stripslashes($quizTitle); ?>" size="40" />
                <img title="Example:<br />Investments Survey" class="wpss_info" src="<?php echo $wpss_url . 'images/wpss_info.png'; ?>" /></p>

            <p><strong>Quiz Intro: </strong><input type="text" name="wpss_quizIntro" value="<?php echo stripslashes($quizIntro); ?>" size="80" />
                <img title="Example:<br />Fill out the questionaire to find out which investment portfolio is right for you." class="wpss_info" src="<?php echo $wpss_url . 'images/wpss_info.png'; ?>" /></p>

            <p><strong>Quiz Submit Text: </strong><input type="text" name="wpss_quizOutro" value="<?php echo stripslashes($quizOutro); ?>" size="80" />
                <img title="Example:<br />Click submit and be taken to the investment style that is right for you." class="wpss_info" src="<?php echo $wpss_url . 'images/wpss_info.png'; ?>" /></p>

            <p><strong>Number Of Questions: </strong><input type="text" name="wpss_numQuestions" value="<?php echo stripslashes($numQuestions); ?>" size="2" maxlength="2" /><input class="button-secondary" type="submit" name="addQuestionsBtn" value="<?php _e('Update', 'wpss_trdom') ?>" /></p>

            <p><strong>Send Results to Email Address: </strong><input type="text" name="wpss_sendEmail" size="40" value="<?php echo stripslashes($sendEmail); ?>" />
                <img title="Leave blank to receive no emails. If email is entered, users will be required to enter their name and email." class="wpss_info" src="<?php echo $wpss_url . 'images/wpss_info.png'; ?>" /></p>

        </div>

        <hr />
        <div id="icon-edit-pages" class="icon32"></div>
        <h2><?php _e("Questions: "); ?></h2>
        <p>Enter questions delimited by the question, followed by the question weight in parentheses, then a set of ordered alphabetical characters associated with each possible answer, followed by the weight in parentheses for each choice (only paste from basic text editor): </p>


<?php
            for ($n = 0; $n < $numQuestions; $n++) {
?>
                <p><h3><?php print("Question: " . ($n + 1)); ?></h3><textarea rows="10" cols="100" name="wpss_questions_<?php echo $n; ?>"><?php echo stripslashes($questionsArray[$n]); ?></textarea><br /></p>
<?php
            }
?>
            <p class="wpss_b">Example:</p>
            <p>Question 1:</p>
            <p>What is your age range? (3)<br />
    		A. 18-25 (1)<br />
    		B. 26-35 (2)<br />
    		C. 36-45 (4)<br />
    		D. 46-Above (5)</p>
            <p>Question 2:</p>
            <p>What is your pay range? (5)<br />
    		A. $30,000-40,000 (1)<br />
    		B. $40,000-60,000 (2)<br />
    		C. $60,000-Above (4)<br /></p>
            <hr />

            <p>Update settings and insert:<br /><br />[wp-simple-survey]<br /><br />into your content, where you want the quiz to appear.</p>
            <p class="submit">
                <input class="button-primary" type="submit" name="doneBtn" value="<?php _e('Done', 'wpss_trdom') ?>" />
            </p>
    </form>
</div>

